package com.aspose.cells;

class zaji {
   private zazw a;
   private static final com.aspose.cells.b.c.a.za b = new com.aspose.cells.b.c.a.za(new String[]{"diskRevisions", "exclusive", "history", "guid", "lastGuid", "keepChangeHistory", "preserveHistory", "protected", "revisionId", "shared", "trackRevisions", "version", "dateTime", "id", "maxRId", "maxSheetId", "minRId", "userName"});

   zaji(zazw var1) {
      this.a = var1;
   }

   void a(zcfw var1) throws Exception {
      var1.j();
      if (var1.m()) {
         while(true) {
            if (!var1.l()) {
               var1.k();
               break;
            }

            switch(b.a(var1.p())) {
            case 0:
               this.a.b = zase.ax(var1.s());
               break;
            case 1:
               this.a.c = zase.ax(var1.s());
               break;
            case 2:
               this.a.d = zase.ax(var1.s());
               break;
            case 3:
               this.a.l = zase.aR(var1.s()).a();
               break;
            case 4:
               this.a.m = zase.aR(var1.s()).a();
               break;
            case 5:
               this.a.e = zase.ax(var1.s());
               break;
            case 6:
               this.a.f = zase.C(var1.s());
               break;
            case 7:
               this.a.g = zase.ax(var1.s());
               break;
            case 8:
               this.a.j = zase.C(var1.s());
               break;
            case 9:
               this.a.h = zase.ax(var1.s());
               break;
            case 10:
               this.a.i = zase.ax(var1.s());
               break;
            case 11:
               this.a.k = zase.C(var1.s());
            }
         }
      }

      var1.d();

      while(zass.a(var1)) {
         if ("header".equals(var1.p())) {
            this.b(var1);
         } else {
            var1.a();
         }
      }

   }

   void b(zcfw var1) throws Exception {
      zazv var2 = new zazv(this.a);
      this.a.a(var2);
      zazr var3 = var2.b;
      if (var1.m()) {
         while(true) {
            if (!var1.l()) {
               var1.k();
               break;
            }

            switch(b.a(var1.p())) {
            case 3:
               var3.b = zase.aR(var1.s()).a();
            case 4:
            case 5:
            case 6:
            case 7:
            case 8:
            case 9:
            case 10:
            case 11:
            default:
               break;
            case 12:
               var3.a = DateTime.a(var1.s(), "yyyy-MM-dd\\THH:mm:ss", com.aspose.cells.b.a.c.za.b());
               break;
            case 13:
               var3.i = var1.s();
               break;
            case 14:
               var3.c = zase.C(var1.s());
               break;
            case 15:
               var3.e = zase.C(var1.s());
               break;
            case 16:
               var3.d = zase.C(var1.s());
               if (var3.c < var3.d) {
                  var3.c = var3.d;
               }
               break;
            case 17:
               var3.f = var1.s();
            }
         }
      }

      var1.d();

      while(zass.a(var1)) {
         if ("sheetIdMap".equals(var1.p())) {
            this.a(var1, var3);
         } else if ("reviewedList".equals(var1.p())) {
            this.b(var1, var3);
         } else {
            var1.a();
         }
      }

   }

   void a(zcfw var1, zazr var2) throws Exception {
      int var3 = zase.C(var1.a("count"));
      var2.g = new int[var3];
      int var4 = 0;
      var1.d();

      for(; zass.a(var1); var1.a()) {
         if ("sheetId".equals(var1.p())) {
            var2.g[var4++] = zase.C(var1.a("val"));
         }
      }

   }

   void b(zcfw var1, zazr var2) throws Exception {
      int var3 = zase.C(var1.a("count"));
      var2.h = new int[var3];
      int var4 = 0;
      var1.d();

      for(; zass.a(var1); var1.a()) {
         if ("reviewed".equals(var1.p())) {
            var2.h[var4++] = zase.C(var1.a("rId"));
         }
      }

   }
}
